import 'package:fish_redux/fish_redux.dart';

//TODO replace with your own action
enum DeviceRegisterAction { action, refresh, changeDeviceVendor, register }

class DeviceRegisterActionCreator {
  static Action onAction() {
    return const Action(DeviceRegisterAction.action);
  }

  static Action refreshUI() {
    return const Action(DeviceRegisterAction.refresh);
  }

  static Action changeDeviceVendor(int vendorId) {
    return Action(DeviceRegisterAction.changeDeviceVendor,
        payload: {'vendorId': vendorId});
  }

  static Action register() {
    return const Action(DeviceRegisterAction.register);
  }
}
